package com.zhijian.wharf.dao;

import com.zhijian.wharf.entity.po.VideoDevice;
import com.zhijian.wharf.entity.vo.request.VideoDeviceSearchVo;
import com.zhijian.wharf.entity.vo.response.VideoDeviceVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface VideoDeviceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(VideoDevice record);

    int insertSelective(VideoDevice record);

    VideoDevice selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(VideoDevice record);

    int updateByPrimaryKey(VideoDevice record);

    /**
     * 查询总数
     *
     * @param videoDeviceSearchVo
     * @return
     */
    int count(VideoDeviceSearchVo videoDeviceSearchVo);

    /**
     * 查询列表
     *
     * @param videoDeviceSearchVo
     * @return
     */
    List<VideoDeviceVo> selectList(VideoDeviceSearchVo videoDeviceSearchVo);

    /**
     * 查询单个
     *
     * @param videoDeviceSearchVo
     * @return
     */
    VideoDeviceVo selectOne(VideoDeviceSearchVo videoDeviceSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    VideoDeviceVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param videoDeviceSearchVo
     * @return
     */
    void deleteByCondition(VideoDeviceSearchVo videoDeviceSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<VideoDevice> entities);

    /**
     * 根据AreaId查询列表
     *
     * @param areaId
     * @return
     */
    List<VideoDeviceVo> selectListByAreaId(Long areaId);
}